home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Tools 1
/
Amiga Tools.iso
/
s
/
export_tex.dfa
< prev
next >
Wrap
Text File
|
1994-06-06
|
1KB
|
61 lines
/************************************************************************
*
* export_tex.dfa by Dirk Federlein 1993
*
* Exports marked addresses to a file that you can use in connection
* with TeX and mailmerge.
*
*
* Feel free to insert additional fields or remove existing ones
*
*
************************************************************************/
options results
tabchar = '09'X
cr = '0A'X
exportfile = 't:dfa_tex.export'
if ~show(ports, DFA) then
do
exit 0
end
if open('exfh',exportfile,'W') then
do
address 'DFA'
FIRST STEM ADR.
if ADR.ADDRESS.14 = 0 then
NEXTSEL STEM ADR.
do while RC = 0
writech('exfh', '{')
writech('exfh', ADR.ADDRESS.0)
writech('exfh', ('\\ '))
writech('exfh', ADR.ADDRESS.2)
writech('exfh', (' '))
writech('exfh', ADR.ADDRESS.1)
writech('exfh', ('\\ '))
writech('exfh', ADR.ADDRESS.3)
writech('exfh', ('\\ '))
writech('exfh', ADR.ADDRESS.4)
writech('exfh', (' '))
writech('exfh', ADR.ADDRESS.5)
writech('exfh', ('\\ '))
writech('exfh', ADR.ADDRESS.6)
writech('exfh', '}')
writech('exfh', (cr))
NEXTSEL STEM ADR.
end
close ('exfh')
end
exit